]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionSystem: Update canChange on error
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 10 May 2020 18:21:03 +0000 (20:21 +0200)
committerverdre <jonas@dressler.it>
Sat, 16 May 2020 16:33:22 +0000 (16:33 +0000)
Whether or not an extension has errors influences the 'canChange'
property, but so far we only update it for errors that occur when
initializing the extension, not when an extension is enabled later.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1249

js/ui/extensionSystem.js

index 5a50b473ac2bdb25ec1a7f47cbd2d00ebf889800..16f5f8a66dc7a51bcf2c8074e5a45eeaaabc17f9 100644 (file)
@@ -268,6 +268,7 @@ var ExtensionManager = class {
         extension.errors.push(message);
 
         logError(error, 'Extension %s'.format(uuid));
+        this._updateCanChange(extension);
         this.emit('extension-state-changed', extension);
     }